@green: #38A838;
@grey: #666666;

@all-width: 15em;

.border-radius(@radius: 0.3em) {
    -webkit-border-radius: @radius;
    -moz-border-radius: @radius;
    -ms-border-radius: @radius;
    -o-border-radius: @radius;
    border-radius: @radius;
}

.button-common(@from, @to) {
    text-align: center;
    border: 0.1em solid @to;
    background-color: @from;
    text-shadow: 0 0.1em 0 @from;
    padding: 0.5em 0;
    width: 100%;
    background-image: -webkit-gradient(linear, left top, left bottom, from(@from), to(@to));
    background-image: -webkit-linear-gradient(top, @from, @to);
    background-image: -moz-linear-gradient(top, @from, @to);
    background-image: -ms-linear-gradient(top, @from, @to);
    background-image: -o-linear-gradient(top, @from, @to);
    background-image: linear-gradient(top, @from, @to);
}

#main {
    margin: 0em auto;
    width: @all-width;
}

#save, #reset, #title, #text, .note {
    .border-radius;
    font: normal normal normal 1.2em/1em verdana, sans-serif;
    color: @grey;
    margin: 0.3em 0em;
    display: block;
    outline: none;
}

#form {
    margin: 1em 0em;
    #title, #text {
        width: @all-width - 3.3;
        padding: 0.3em;
        border: 0.2em solid @green;
        &:focus, &:hover {
            background-color: lighten(@green, 40%);
        }
    }
    #save, #reset {
        .button-common(#eeeeee, #cccccc);
        border-bottom: 0.1em solid #bbb;
        &:focus, &:hover {
            .button-common(#dddddd, #bbbbbb);
            border-bottom: 0.1em solid #999;
            cursor: pointer;
        }
        &:active {
            border: 0.1em solid #aaa;
            border-bottom: 0.1em solid #888;
            -webkit-box-shadow: inset 0 0 5px 2px #aaaaaa, 0 1px 0 0 #eeeeee;
            -moz-box-shadow: inset 0 0 5px 2px #aaaaaa, 0 1px 0 0 #eeeeee;
            -ms-box-shadow: inset 0 0 5px 2px #aaaaaa, 0 1px 0 0 #eeeeee;
            -o-box-shadow: inset 0 0 5px 2px #aaaaaa, 0 1px 0 0 #eeeeee;
            box-shadow: inset 0 0 5px 2px #aaaaaa, 0 1px 0 0 #eeeeee;
        }
    }
}

#notes {
    margin: 1em 0em;
    #list {
        list-style-type: none;
        margin: 0em;
        padding: 0em;
        .note {
            color: lighten(@grey, 40%);
            border-width: 0.2em;
            border-style: solid;
            border-color: lighten(@grey, 40%);
            text-decoration: none;
            text-align: center;
            &:focus, &:hover {
                .border-radius;
                color: @grey;
                border: 0.2em solid @green;
            }
            &:active {
                background-color: lighten(@green, 40%);
            }
        }
    }
}

